package com.cameron.serviceedu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cameron.entity.EduTeacher;
import com.cameron.serviceedu.mapper.EduTeacherMapper;
import com.cameron.serviceedu.service.EduTeacherService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 讲师 服务实现类
 * </p>
 *
 * @author atguigu
 * @since 2022-06-14
 */
@Service
public class EduTeacherServiceImpl extends ServiceImpl<EduTeacherMapper, EduTeacher> implements EduTeacherService {

    @Override
    public String getTeacherNameById(String teacherId) {
        EduTeacher teacher = this.getById(teacherId);
        return teacher == null ? null : teacher.getName();
    }
}
